<?php
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller {
     public function _initialize(){
       $identifier='sysadmin';
       $expiry_after='3600';
       $protected_key_path='c://private_key';
       $tool_path='c://signature.exe';
       vendor('PhpImServerSdk/TimRestApi');
       $this->TimRestApi=  new \Vendor\PhpImServerSdk\TimRestAPI();
       $this->TimRestApi->generate_user_sig($identifier,$expiry_after,$protected_key_path,$tool_path);
    }
}